package org.szy.plugin.dev.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import org.szy.core.common.page.QueryPage;
import org.szy.core.common.service.BaseService;
import org.szy.plugin.dev.entity.DevDict;
import org.szy.plugin.dev.entity.DevLoginLog;
import org.szy.plugin.dev.param.DevLoginLogQueryParam;

/**
 * 登录日志Service接口
 *
 * @author wangbuhao
 * @since 2023-06-28 16:05:55
 **/
public interface DevLoginLogService  extends BaseService<DevLoginLog> {


    /**
     * 获取登录日志查询Wrapper
     *
     * @author wangbuhao
     * @since 2023-06-28 20:06:27
     */
    QueryWrapper qwByQuery(DevLoginLogQueryParam param);

    /**
     * 获取登录日志分页
     *
     * @author wangbuhao
     * @since 2023-06-28 20:06:27
     */
    Page<DevLoginLog> page(QueryPage<DevLoginLog> page, DevLoginLogQueryParam param);

    /**
     * 增加登录日志
     *
     * @param type    登录类型
     * @param userId  用户标识
     * @param account 用户名称
     * @param status  登录状态
     * @param msg     登录描述
     */
    DevLoginLog add(String type, Long userId, String account, Integer status, String msg);


}
